<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
<!--
body {
	margin-left: 3px;
	margin-top: 0px;
	margin-right: 3px;
	margin-bottom: 0px;
}
.STYLE1 {
	color: #e1e2e3;
	font-size: 12px;
}
.STYLE6 {color: #000000; font-size: 12; }
.STYLE10 {color: #000000; font-size: 12px; }
.STYLE19 {
	color: #344b50;
	font-size: 12px;
}
.STYLE21 {
	font-size: 12px;
	color: #3b6375;
}
.STYLE22 {
	font-size: 12px;
	color: #295568;
}
*{font-family:Tahoma, Arial, Helvetica, Sans-serif,"宋体";}
table{
	width:85%;
	margin:0px auto;
	font:Georgia 11px;
	font-size:12px;
	color:#333333;
	text-align:center;
	border:1px solid #999;/*细线表格线条颜色*/
	border-collapse:collapse;/*细线表格代码*/
}
table td{
	border:1px solid #999;/*细线表格线条颜色*/
	height:22px;
}
caption{text-align:center;font-size:12px;font-weight:bold;margin:0 auto;}
tr.t1 td {background-color:#fff;}
tr.t2 td {background-color:#eee;}
tr.t3 td {background-color:#ccc;}
th,tfoot tr td{font-weight:bold;text-align:center;background:#c5c5c5;}
th{line-height:30px;height:30px;}
tfoot tr td{background:#fff;line-height:26px;height:26px;}
thead{border:1px solid #999;}
thead tr td{text-align:center;}
#page{text-align:center;float:right;}
#page a,#page a:visited{width:60px;height:22px;line-height:22px;border:1px black solid;display:block;float:left;margin:0 3px;background:#c9c9c9;
text-decoration:none;}
#page a:hover{background:#c1c1c1;text-decoration:none;}
.grayr {padding:2px;font-size:11px;background:#fff;float:right;}
.grayr a {padding:2px 5px;margin:2px;color:#000;text-decoration:none;;border:1px #c0c0c0 solid;}
.grayr a:hover {color:#000;border:1px orange solid;}
.grayr a:active {color:#000;background: #99ffff}
.grayr span.current {padding:2px 5px;font-weight:bold; margin:2px; color: #303030;background:#fff;border:1px orange solid;}
.grayr span.disabled {padding:2px 5px;margin:2px;color:#797979;background: #c1c1c1;border:1px #c1c1c1 solid;}
a{
	text-decoration:none;
	}
	img{
		border:0px;}
-->
</style>
<script src="../admin_core/templates/admin/js/list.js"></script>
<script type="text/javascript">
function selectPage(obj)
{

	var value = obj.value;
	document.location.href="control.php?action=waitValidateTeachers&page="+value+"&countPage=#{$countPage}#&count=#{$count}#&xyId=#{$xyId}#";
	}
	function look()
	{
		var xyId = document.getElementById('xyId').value;
		document.location.href="control.php?action=#{$action}#&xyId="+xyId;
	}
	function checkTeacherDetail(lsId)
	{
		window.open('../readTeacherDetail.php?lsId='+lsId,'老师信息' ,'height=500, width=900, top=0,left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no');
		}
		function readDepartment(xyId)
		{
			window.open('../readDepartment.php?xyId='+xyId,'查看学院/部门信息' ,'height=500, width=900, top=0,left=0, toolbar=no, menubar=no, scrollbars=yes, resizable=no,location=no, status=no');
			}
</script>
</head>

<body style="text-align:center;">
<center>

<fieldset  style=" width:1110px;">
<legend><img src="images/311.gif"/>&nbsp;<span style="color:#333; font-size:15px; font-weight:bold;">老师列表</span></legend>
<span style=" font-size:13px; font-weight:bold;">根据学院查看:</span>
<span>
<select name="xyId" id="xyId" style="width:150px; text-align:center;">
#{foreach from=$xyList item=xy}#
<option  value="#{$xy->getXy_id()}#"
#{if $xy->getXy_id()==$xyId}#
selected="selected"
#{/if}#
>#{$xy->getXy_name()}#</option>
#{/foreach}#
</select>
</span>
<input type="button" value=" 查 看 " onclick="look()"  style="width:50px; height:25px;"/>
<br />
<table>
  <caption style="font-size:14px;">

#{if $action=="waitValidateTeachers"}#
所有未审核老师信息列表<br />
#{else if $action == "validatedTeachers"}#
所有通过审核老师信息列表<br />
#{else}#
所有未通过审核老师信息列表<br />
#{/if}#
  </caption>
  <thead>
    <tr>
      <th>老师姓名</th>
      <th>所属学院/部门</th>
      
      <th>性别</th>
      <th>联系电话</th>
      <th>联系邮箱</th>
      <th>操作</th>
    </tr>
  </thead>
  <tbody id="tab">
  #{if $count==0}#
  <tr>
   <td colspan="6" align="center" style="text-align:center; border:1px solid #999;">暂无数据！</td>
  </tr>
  #{else}#
 #{foreach from=$list item=ls}#
 <tr onmousemove="changeBackColor(this)" onmouseout="removeBackColor(this)">
      <td width="15%" align="left" style="padding-left:5px;">
      #{$ls->getLs_name()}#
      </td>
      <td width="12%" align="left" style="padding-left:5px; cursor:pointer;" onclick="readDepartment(#{$ls->getXy()->getXy_id()}#)">#{$ls->getXy()->getXy_name()}#</td>
      
      <td width="5%" align="center">
      #{if $ls->getLs_xb()==1}#
      男
      #{else}#
      女
      #{/if}#
      </td>
      <td width="15%" align="center">#{$ls->getLs_tele()}#</td>
       <td width="20%" style="padding-left:5px; text-align:left;">#{$ls->getLs_email()}#</td>
       <td>
       #{if $action=="waitValidateTeachers"}#
        <a href="control.php?action=teacherPass&lsId=#{$ls->getLs_id()}#"  onclick="return confirm('确定要执行该操作吗？');"><img src="images/ok.gif" title="审核通过" width="14" height="14"/> 审核通过</a>
      <a href="control.php?action=deletePassed&lsId=#{$ls->getLs_id()}#"  onclick="return confirm('确定要执行该操作吗？');">  <img src="images/user1_(delete)_16x16.gif" title="拒绝注册" width="14" height="14"/> 拒绝注册</a>
      <a href="#" onclick="checkTeacherDetail(#{$ls->getLs_id()}#)"> <img src="images/view_16x16.gif" title="获取该老师详细信息" width="14" height="14"/>查看详细信息</a>
      #{else if $action == "validatedTeachers"}#
     <a href="control.php?action=deletePassed&lsId=#{$ls->getLs_id()}#"  onclick="return confirm('确定要执行该操作吗？');"> <img src="images/user1_(delete)_16x16.gif" title="取消注册" width="14" height="14"/> 取消注册</a>
      <a href="#" onclick="checkTeacherDetail(#{$ls->getLs_id()}#)"> <img src="images/view_16x16.gif" title="获取该老师详细信息" width="14" height="14"/>查看详细信息</a>
       #{else}#
       <a href="control.php?action=teacherPass&lsId=#{$ls->getLs_id()}#"  onclick="return confirm('确定要执行该操作吗？');"><img src="images/ok.gif" title="审核通过" width="14" height="14"/> 审核通过</a>
      <a href="control.php?action=deleteTeacher&lsId=#{$ls->getLs_id()}#"  onclick="return confirm('确定要执行该操作吗？');"><img src="images/user1_(delete)_16x16.gif" title="删除" width="14" height="14""/>删除</a>
      <a href="#" onclick="checkTeacherDetail(#{$ls->getLs_id()}#)"> <img src="images/view_16x16.gif" title="获取该老师详细信息" width="14" height="14"/>查看详细信息</a>
       #{/if}#
       </td>
      </tr>
 #{/foreach}#
 #{/if}#
   <tr>
  <td colspan="6" align="right" style="text-align:right; border:1px solid #999;">
  共有#{$count}#条记录 总共有#{$countPage}#页 当前为#{$start}#-#{$end}#条 在第#{$nowPage}#页
  #{if $nowPage==1}#
 上一页
  #{else}#
  <a href="control.php?action=#{$action}#&page=#{$nowPage-1}#&countPage=#{$countPage}#&count=#{$count}#&xyId=#{$xyId}#">上一页</a>
  #{/if}#

  #{if $countPage>$nowPage}#
   <a href="control.php?action=#{$action}#&page=#{$nowPage+1}#&countPage=#{$countPage}#&count=#{$count}#&xyId=#{$xyId}#"> 下一页</a>
  #{else}#
  下一页
  #{/if}#
  跳至<select onchange="selectPage(this)">
  #{section loop=$countPage name=a}#
<option value="#{$smarty.section.a.iteration}#" #{if $smarty.section.a.iteration==$nowPage}# selected="selected"#{/if}#>#{$smarty.section.a.iteration}#页</option>
#{/section}#
</select>
  &nbsp;&nbsp;
  
  </td>
  </tr>
  </tbody>

  
</table>
</fieldset>
</center>
</body>
</html>
